﻿@page "/RazorPage/InternalVehicle/HaveCarEmail/{formid:int?}"
@model RndMaterialDisposalService.Pages.EmailTemplates.InternalVehicle.IndexModel

@{
    Layout = "~/Pages/Shared/_EmailLayout2.cshtml";
}

<div style="background-color: white; line-height: 1.5; font-family: 宋体; font-size: 10pt;margin: 0 auto;">
    <div style="overflow: hidden; font-size: 10pt;">
        <p class="pfs-11">@Model.FormData?.Applicant，您好！</p>
        <br />
        <div><p class="pfs-11"><a href="[ViteFormUrl]?Para={ENCYPTPARAVALUE}" title="打开表单。">打开表单</a></p></div>
    </div>
    <div style="margin-top: 15px; overflow: auto;">
        <table style="width: 100%; border-spacing: 0; border-collapse: collapse; font-family: 宋体; font-size: 10pt;">
            <tr style="background-color: #B8B8B8; color: black; font-size: 11pt; font-weight: bold;">
                <td colspan="4">申请信息</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">用车人姓名:</td>
                <td style="width: 30%;">@Model.FormData?.UseCarName</td>
                <td style="font-weight: Bold;width: 20%;">用车部门:</td>
                <td style="width: 30%;">@Model.FormData?.DeptName</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">受益部门编码:</td>
                <td style="width: 30%;">@Model.FormData?.DeptCode</td>
                <td style="font-weight: Bold;width: 20%;">手机号:</td>
                <td style="width: 30%;">@Model.FormData?.UserMobile</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">用车人数:</td>
                <td style="width: 30%;">@Model.FormData?.PeopleNum</td>
                <td style="font-weight: Bold;width: 20%;">用车日期:</td>
                <td style="width: 30%;">@Model.FormData?.UseCarDate?.ToString("yyyy-MM-dd")</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">出发时间:</td>
                <td style="width: 30%;">@(Model.FormData?.UseCarTime != null ? Model.FormData?.UseCarTime!.Value.ToString("HH:mm") : "")</td>
                <td style="font-weight: Bold;width: 20%;">出发地点:</td>
                <td style="width: 30%;">@Model.FormData?.StartAddress</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">不需返程:</td>
                <td style="width: 30%;">@(Model.FormData?.NoNeedBack == 1 ? "是" : "否")</td>
                <td style="font-weight: Bold;width: 20%;">是否长途:</td>
                <td style="width: 30%;">@(Model.FormData?.LongDistance == 1 ? "是" : "否")</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">返回日期:</td>
                <td style="width: 30%;">@Model.FormData?.ReturnDate?.ToString("yyyy-MM-dd")</td>
                <td style="font-weight: Bold;width: 20%;">返回时间:</td>
                <td style="width: 30%;">@(Model.FormData?.ReturnTime != null ? Model.FormData?.ReturnTime!.Value.ToString("HH:mm") : "")</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">返回地点:</td>
                <td style="width: 30%;">@Model.FormData?.ReturnAddress</td>
                <td style="font-weight: Bold;width: 20%;"></td>
                <td style="width: 30%;"></td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">用车事由:</td>
                <td colspan="3">@Model.FormData?.Remark</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">具体行车线路描述:</td>
                <td colspan="3">@Model.FormData?.DetailDescription</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">对车辆要求:</td>
                <td colspan="3">@Model.FormData?.VehicleRequirement</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">调度区域:</td>
                <td style="width: 30%;">@Model.FormData?.DispatchArea</td>
                <td style="font-weight: Bold;width: 20%;">部门经理:</td>
                <td style="width: 30%;">@Model.FormData?.DeptLeader</td>
            </tr>

            <tr style="background-color: #B8B8B8; color: black; font-size: 11pt; font-weight: bold;">
                <td colspan="4">车辆信息</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">车牌号:</td>
                <td colspan="3">@Model.FormData?.Task3?.CarNumber</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">司机:</td>
                <td colspan="3">@Model.FormData?.Task3?.DriverName</td>
            </tr>
            <tr>
                <td style="font-weight: Bold;width: 20%;">手机:</td>
                <td colspan="3">@Model.FormData?.Task3?.DriverMobile</td>
            </tr>
        </table>

    </div>
</div>